<template>
  <div id="app" class="little-box-left">
    <h1>Left</h1>
    <hr />
    <p>count:{{ count }}</p>
    <button @click="count += 1">count+=1</button>
  </div>
</template>

<script>
export default {
  name: "MyLeft",

  data() {
    return {
      count: 0,
    };
  },
  created() {
    console.log("left组件被创建了");
  },
  destroyed() {
    console.log("left组件被销毁了");
  },
  activated() {
    console.log("left组件被激活了");
  },
  deactivated() {
    console.log("left组件被销毁了");
  },
};
</script>

<style>
.little-box-left {
  background-color: greenyellow;
  height: 300px;
  text-align: center;
}
</style>